//
//  ViewController.m
//  顶部放大视图
//
//  Created by 徐荘 on 2017/3/7.
//  Copyright © 2017年 徐荘. All rights reserved.
//

#import "ViewController.h"
#import "HeaderVC.h"

@interface ViewController ()

@end

@implementation ViewController
- (IBAction)pushHeader:(UIBarButtonItem *)sender {
    
    HeaderVC *headerVC = [[HeaderVC alloc] init];
    
    [self.navigationController pushViewController:headerVC animated:YES];
    
}

- (void)viewWillAppear:(BOOL)animated{
    
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
